classmates = ['Boy','Tom','Tracy']
print(classmates)
print(len(classmates))
print(classmates[1])
classmates.insert(2,'你好')
classmates.append('好好好')
print(classmates)
#list tuple 练习
L = [
    ['Apple', 'Google', 'Microsoft'],
        ['Java', 'Python', 'Ruby', 'PHP'],
	    ['Adam', 'Bart', 'Lisa']
	    ];
print(L[0][0])
print(L[1][1])
print(L[2][2])

#weight = int(input('请输入小明体重 '))
#height = int(input('请输入小明身高 '))
#BMI = (height/weight) * (height/weight)
BMI = 25
if BMI < 18.5:
	print('过轻 %.2f' % (BMI))
elif BMI < 25:
	print('正常')
elif BMI < 28:
	print('过重')
elif BMI < 32:
	print('肥胖')
else:
	print('严重肥胖')

#for 循环
L = ['Bart','Lisa','Adam']
for x in L:
	print(x)

i = len(L)
while(i>0):
	i = i-1
	print(L[i])

key1 = (1,2,3)
key2 = (1,[2,3])
dit = {key1:'dict'}
print('dict',dit)
st = set(dit)
print('set',st)
